#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QObject>
#include <QThread>
#include <run_tld.h>
#include <QDir>
#include <QImage>
#include "ncc/Variable_Function.h"


class myThread : public QThread
{
    Q_OBJECT
public:
    explicit myThread(QObject *parent = nullptr);
    void thr_stop();

    void set_filename(QString name);
    void set_autoctr(int num);

signals:
    void send_img(QImage image);

protected:
    void run();


public slots:

private:
    bool while_flag ;
    int auto_control;
    int win_num;


    int tld_run();

};

#endif // MYTHREAD_H
